<template>
  <div id="app">
    <el-container>
      <el-header style="height: 10vh; background-color: #373d41;" class="header">
        <div>
          <p style="font-size: 6vh; line-height: 10vh;color: aliceblue;display: inline-block;">商品管理系统</p>
        </div>
        <div class="headright">
          <span class="headfram"><img src="./assets/R-C.jpg" alt=""></span>
          <span class="name">xingsds</span>
          <i class="el-icon-right" style="font-size: 5vh;color: white;"></i>
        </div>
      </el-header>

      <el-container>
      <el-aside style="height: 90vh;">
        <el-col :span="24">
          <el-menu default-active="1">
            <router-link to="/user" class="routernone">
              <el-menu-item index="1">
                <template slot="title">
                  <i class="el-icon-user-solid"></i>
                  <span>用户</span> 
                </template>
              </el-menu-item>
            </router-link>
            <router-link to="/goods" class="routernone">
              <el-menu-item index="2">
                <template slot="title">
                  <i class="el-icon-s-goods"></i>
                  <span>商品</span> 
                </template>
              </el-menu-item>
            </router-link>
            <router-link to="/order" class="routernone">
              <el-menu-item index="3">
                <template slot="title">
                  <i class="el-icon-shopping-cart-2" style="font-weight: bold;"></i>
                  <span>订单</span>
                </template>
              </el-menu-item>
            </router-link>
            <router-link to="/key" class="routernone">
              <el-menu-item index="4">
                <template slot="title">
                  <i class="el-icon-key" style="font-weight: bold;"></i>
                  <span>权限</span> 
                </template>
              </el-menu-item>
            </router-link>
          </el-menu>
        </el-col>
      </el-aside> 
      <el-main>
        <router-view></router-view>
      </el-main>
      </el-container>

    </el-container>
  </div>
</template>

<script>

</script>

<style>
* {
  padding: 0;
  margin: 0;
}
.header{
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.headfram{
  display: inline-block;
  height: 8vh;
  width: 8vh;
  border-radius: 50%;
  background-color: aqua;
  overflow: hidden;
}
.headfram img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.headright{
  display: flex;
  align-items: center;
}
.name{
  height: 8vh;
  font-size: 3vh;
  line-height: 8vh;
  margin-left: 2vh;
  margin-right: 2vh;
  color: beige;
}
.routernone{
  text-decoration: none; 
  color: inherit;
}
</style>
